import pandas as pd
import numpy as np
import requests,json



def refreash_articles():
    data = pd.read_table('f:/abc_kg_nlp/data/dict/article_ids')
    preview_url=r'http://120.26.212.207:10002/preview/preview/index'
    # data = json.dumps({"article_id": '2455999'})
    # result = requests.get(preview_url, data)
    for id in data['ids']:
        print(id)
        data = json.dumps({"article_id": '2455999'})
        result = requests.get(preview_url, data)
        print(result)
    print('end')

if __name__=="__main__":
    refreash_articles()
